package com.lijian.reptile.model;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * ClassName: Thread
 * Description:
 * date: 2021/11/25 0025 下午 4:20
 *
 * @author LiJian
 * @since JDK 1.8
 */
public class ThreadClass {

    public static void startThread(String url){
        ExecutorService pool = Executors.newFixedThreadPool(2);
        pool.execute(new Spider(url));

        pool.shutdown();


    }
}
